package com.xbts.common.core.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xbts.common.core.annotation.Excel;
import com.xbts.common.core.utils.StringUtils;
import com.xbts.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 产能信息统计对象 we_produce_information_statistics
 * 
 * @author xbts
 * @date 2024-01-02
 */
@Data
@ApiModel(value = "WeProduceInformationStatistics", description = "产能信息统计对象")
@TableName("we_produce_information_statistics")
public class WeProduceInformationStatistics extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** id */
    @ApiModelProperty("id")
    private String id;

    /** 生产面积 */
    @Excel(name = "生产面积")
    @ApiModelProperty("生产面积")
    private String produceArea;

    /** 工序 */
    @Excel(name = "工序")
    @ApiModelProperty("工序")
    private String productionProcesses;

    /** 工厂 */
    @Excel(name = "工厂")
    @ApiModelProperty("工厂")
    private String factory;

    public <T> QueryWrapper<T> queryWrapper() {
        QueryWrapper<T> wrapper=new QueryWrapper<>();

        wrapper.like(StringUtils.isNotEmpty(id),"id" , id);
        wrapper.like(StringUtils.isNotEmpty(produceArea),"produce_area" , produceArea);
        wrapper.like(StringUtils.isNotEmpty(productionProcesses),"production_processes" , productionProcesses);
        wrapper.like(StringUtils.isNotEmpty(factory),"factory" , factory);
        wrapper.orderByDesc("create_time");
        return wrapper;
    }

}
